package com.tuanzi.loan.business.repository.businesssystem.custom;

import com.tuanzi.loan.business.entity.businesssystem.BusinessMain;
import com.tuanzi.loan.vo.request.businesssystem.BusinessMainRequest;
import com.tuanzi.loan.vo.response.businesssystem.BusinessMainResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface BusinessMainRepositoryCustom {
    Page<BusinessMainResponse> list(BusinessMainRequest searchRequest, Pageable pageable);

    List<BusinessMain> getCompanyList();

    /**
     * 更新消耗金额
     * @param companyId
     * @param expendAmount
     */
    void updateExpendAmount(Long companyId, Double expendAmount);


    /**
     * 更新预付金额
     * @param companyId
     * @param expendAmount
     */
    void updatePrepayAmount(Long companyId, Double prepayAmount);

    /**
     * 更新开票金额
     * @param companyId
     * @param expendAmount
     */
    void updatebillAmount(Long companyId, Double prepayAmount);
}
